<?php
   /**
     *
     * Formulario donde al se muestra al usuario con Perfil Admistrador, la Grafica del Número de Casos por Tipo de Influenza de acuerdo a la Semana Epidemiológica.
     * @desc Procedimiento: Grafica de la Semana Epidemilogica.
     * @filesource
     * @uses         fncReportes
     * uses          session
     * method        grafProVsConf()
     * @version      1.0
     *
     *
     */

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include dirname(__FILE__).'/../../Lib/pivote.php';
include dirname(__FILE__).'/../../Lib/class.fncReportes.php';
include dirname(__FILE__).'/../../Lib/class.session.php';
include dirname(__FILE__).'/../../Lib/class.setter.php';
$session= new session();

$reporte = new fncReportes(Srv,Usr,Pass,base);
import_request_variables("gP","rpt_");

//echo $reporte->grafProVsConf(date('W'),2);
?>
<html>
  <head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <script type="text/javascript">
      google.load("visualization", "1", {packages:["columnchart"]});
      google.setOnLoadCallback(drawChart);
      function drawChart() {
        var data = new google.visualization.DataTable();
        data.addColumn('string', 'Periodo');
        data.addColumn('number', 'AH1N1-PMD');
        data.addColumn('number', 'A');
        data.addColumn('number', 'AH1');
        data.addColumn('number', 'AH3');
        data.addColumn('number', 'AN/S');
        <?php
          echo $reporte->grafProVsConf(date('W'),2);
        ?>
           var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
        chart.draw(data, {width: 750, height: 260, is3D: true, isStacked:true, legend: 'bottom', title: 'Por semana Epidemiologica'});

      }
    </script>
  </head>

  <body style="font-size: 6px; font-family: Helvetica,Arial;">
    <div id="chart_div"></div>
  </body>
</html>